The operator precedence parsing and recursive descent parsing are used in the syntax analysis and the intermediate code is quadruples. 语法分析中使用了算符优先分析法和递归下降分析法;
The lexical analysis uses the advanced search method while the syntax analysis adopts the top-down recursive descent parsing. Furthermore, we give some sample codes, arithmetical statement and the design of related classes. 其中词法分析是利用超前搜索的方法,语法分析则采用了自上而下的递归下降分析法,并给出了示例代码、算法描述和相关类的结构设计。